package com.itheima.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.util.Date;

@Data
@TableName("ad_sensitive")
@ApiModel(description = "敏感词")
public class AdSensitive {

    @ApiModelProperty(notes = "主键id")
    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    @Size(min = 1,max = 10,message = "敏感词不能超过10个字")
    @ApiModelProperty(notes = "敏感词")
    @TableField("sensitives")
    private String sensitives;

    @ApiModelProperty(notes = "创建时间")
    @TableField("created_time")
    private Date createdTime;
}
